package system;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import system.bean.UserState;

public final class RunTimeData {
	private final static Map<Integer, UserState> userstatelist = new ConcurrentHashMap<Integer, UserState>();
	
	public static void Add(Integer userid, UserState userState){
		userstatelist.put(userid, userState);
	}
	
	public static void Remove(Integer userid){
		userstatelist.remove(userid);
	}
	
	public static UserState Get(Integer userid){
		return userstatelist.get(userid);
	}
}
